Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix updateChart() missing filter expressions map #1123

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

PatrickTasse
Copy link
Contributor

@PatrickTasse PatrickTasse commented Sep 24, 2024

When a filter is applied, updateChart() should not be called without the
filter expression map.

Replace method updateSearchFilters(), which computes the filter
expression map and calls updateChart with the map if it applies, with
method filterExpressionsMap() which only computes the map. This method
is now always called to compute the parameter to be passed in
updateChart().

Remove the updateSearchFilters callback when adding or removing a filter
as the state change will handle it already.

Method _debouncedUpdateSearch() is removed, as _debouncedUpdateChart()
can always be used instead.

When a filter is applied, updateChart() should not be called without the
filter expression map.

Replace method updateSearchFilters(), which computes the filter
expression map and calls updateChart with the map if it applies, with
method filterExpressionsMap() which only computes the map. This method
is now always called to compute the parameter to be passed in
updateChart().

Remove the updateSearchFilters callback when adding or removing a filter
as the state change will handle it already.

Method _debouncedUpdateSearch() is removed, as _debouncedUpdateChart()
can always be used instead.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Fixed the issue of not applying filters when removing/adding annotations.

@PatrickTasse PatrickTasse merged commit c2a9804 into eclipse-cdt-cloud:master Sep 24, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants